<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<title></title>
	<style type="text/css">
		body{
		
			background-image:url(img/bb.jpg);
			background-repeat:repeat-x;
	
		}
	</style>
</head>
<body>
	<%@ include file="include/main-top.jsp" %>
	<div class="container well">
		<!-- 如果返回值是10000的话,则提示添加目标成功  -->
		<c:if test="${param.state == '10004' }">
			<div id="addemp" class="alert alert-info fade in" >
	            <a href="#" data-dismiss="alert" class="close">×</a>
	            <strong>恭喜您,编辑目标成功!</strong>
	        </div>
		</c:if>
		<h2>编辑目标</h2>
		<hr/>
		
		<form class="form-horizontal" action="newupdategoal.jspx?goalid=${goal.id}" method="post">
			<fieldset>
				<div class="control-group">
		            <div class="controls">
						<label><h3>目标名称</h3></label>
		               <input type="text"  value="${goal.name }" class="span3" name="goalname">
		            </div>
		            <div class="controls">
						<label><h3>目标描述</h3></label>
		              <textarea rows="3" id="textarea"  class="input-xlarge" name="goaldesc">${goal.desc }</textarea>
		            </div>
		            <div class="controls">
						<label><h3>选择负责人</h3></label>
		                <select id="selectlevel" name="employeeid">
		           			<!-- 在此迭代的是雇员 -->	
			                <c:forEach var="employee" items="${employeeList}">
			            		<option value="${employee.id}"  > ${employee.username} </option>
			                </c:forEach>
			            </select>
		            </div>
		            <div class="form-actions">
		            	<button class="btn btn-primary" type="submit" style="margin-left:200px">保存</button>
		            	<a class="btn" href="showgoal.jspx?projectid=${ep.project.id}">返回</a>
		            </div>
		        </div>
	        </fieldset>
        </form>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$('#newgoal').click(function(){
				$('#hidegoal').show();
			});
		});
	
	</script>
</body>
</html>
